﻿$.dragManager = {
    current: null,
    droppables: { },

    drag: function(event) {

        $.each($.dragManager.droppables, function() {

            var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null);
            if(!c){
                return;
            }

            this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0;
            this[c == "isover" ? "_over" : "_out"].call(this, event);
        });
    }
};